package master;

import java.awt.Color;

import javax.swing.JButton;

public class RechnerButton extends JButton{
	private static final long serialVersionUID = 1L;
	private Rechner rechner;

	public RechnerButton() {
		
	}

	
	public RechnerButton(String titel, Rechner rechner) {
		this(titel,rechner,null);
	}
	
	public RechnerButton(String titel, Rechner rechner, Color farbe) {
		this.setText(titel);
		this.setRechner(rechner);
		if (farbe!=null)this.setBackground(farbe);
	}

	public Rechner getRechner() {
		return rechner;
	}

	public void setRechner(Rechner rechner) {
		this.rechner = rechner;
	}

	

}
